﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Meeting.Public
{
    public class UserInfo
    {
        #region 登录用户参数
        //用户id
        public static string UserID
        {
            get { return CookieFunction.GetCookie("UserID"); }
            set { CookieFunction.SetCookie("UserID", value); }
        }

        //用户姓名
        public static string UserName
        {
            get { return CookieFunction.GetCookie("UserName"); }
            set { CookieFunction.SetCookie("UserName", value); }
        }
        //职务
        public static string Title
        {
            get { return CookieFunction.GetCookie("psnTitle"); }
            set { CookieFunction.SetCookie("psnTitle", value); }
        }
        //用户角色
        public static string RoleId
        {
            get { return CookieFunction.GetCookie("RoleId"); }
            set { CookieFunction.SetCookie("RoleId", value); }
        }

        //用户登录名名
        public static string LoginName
        {
            get { return CookieFunction.GetCookie("LoginName"); }

            set { CookieFunction.SetCookie("LoginName", value); }
        }
        //部门guid
        public static string SectionID
        {
            get { return CookieFunction.GetCookie("DepartmentID"); }
            set { CookieFunction.SetCookie("DepartmentID", value); }
        }
        //所属部门
        public static string SectionName
        {
            get { return CookieFunction.GetCookie("DepartmentName"); }
            set { CookieFunction.SetCookie("DepartmentName", value); }
        }
        #endregion 登录用户参数
    }
}
